<template>
	<!-- 我的优惠卷界面 -->
	<!-- 已经过期的界面 -->
	<view class="app">
		<view class="discount_top clear">
			<view>未使用</view>
			<view>已使用</view>
			<view style="color: royalblue;">已过期</view>
		</view>
		<view class="discount_bottom">
			<view class="center clear">
				<view>
					<view>
						￥{{money}}
					</view>
					<view>
						满200可用
					</view>
				</view>
				<view>
					<view>
						通用/仅限用于{{name}}加油站使用
					</view>
					<view>
						<text>
							{{startTime}}至{{endTime}}
						</text>
						<text>立即使用</text>
					</view>
				</view>
			</view>
			<view class="center clear">
				<view>
					<view>
						￥{{money}}
					</view>
					<view>
						满200可用
					</view>
				</view>
				<view>
					<view>
						通用/仅限用于{{name}}加油站使用
					</view>
					<view>
						<text>
							{{startTime}}至{{endTime}}
						</text>
						<text>立即使用</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: "中国石化",
				money: 10,
				startTime: "2020.04.11",
				endTime: "2020.05.11",
				useStatus:["未使用","已使用","已过期"],
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.app{
		width: 99%;
/* 		border: 2px solid red; */
	}
	.discount_top{
		height: 100rpx;
/* 		border: 2px solid blue; */
		font-size: 30rpx;
		
	}
	.discount_top>view{
		float: left;
		margin: 20rpx 70rpx;
	}
	.discount_bottom{
		background-color: rgba(0, 0, 0, 0.05);
	}
	.center {
		width: 100%;
		height: 220rpx;
	}
	
	.center>view:first-child {
		margin: 20rpx 0 0 20rpx;
		width: 30%;
		height: 180rpx;
		float: left;
		border-radius: 20rpx;
		background-color: lightgrey;
		text-align: center;
		color: black;
	}
	
	.center>view:first-child>view:first-child {
		margin: 50rpx 60rpx 0 30rpx ;
		font-size: 50rpx;
	}
	
	.center>view:nth-child(2) {
		margin: 20rpx 0;
		width: 63%;
		height: 180rpx;
		float: right;
		border-left: rgba(0, 0, 0, 0.2) 2px solid;
	}
	
	.center>view:first-child>view:nth-child(2) {
		margin-top: 20rpx;
		color: black;
	}
	.center>view:nth-child(2)>view:first-child{
		margin: 15rpx 0 10rpx 20rpx;
		font-size: 15rpx;
	}
	.center>view:nth-child(2)>view:nth-child(2){
		color: rgba(0,0,0,0.3);
		font-size: 10rpx;
		margin:60rpx 0 10rpx 30rpx;
	}
	.center>view:nth-child(2)>view:nth-child(2)>text:last-child{
		display: inline-block;
		width: 120rpx;
		height: 50rpx;
		margin: 0 0 10rpx 30rpx;
		border-radius: 10rpx;
		text-align: center;
		color: white;
		background-color: darkgray;
	}
	.active{
		color: grey;
	}
	
</style>
